<?php
namespace Home\Model;
use Think\Model;
    class NotesModel extends Model {
        protected $_validate = array(
                            array('name','require','必须输入呢称！'), //默认情况下用正则进行验证
                            array('content','require','必须输入愿望内容！'), //默认情况下用正则进行验证
                          );
    }

